<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>v-blid</title>
  </head>
  <body>
    <pre>
          属性绑定：v-bind：href=''
                  ：href=''
      </pre
    >
    <div class="box">
      <a href="www.baidu.com">百度</a>
      <a v-bind:href="sina" v-bind:alt="alt">v-blid百度</a>
      <a :href="url" title="baidu">:href百度</a>
      <button>click</button>
    </div>

    <script src="../node_modules/vue/dist/vue.js"></script>
    <script>
      new Vue({
        el: '.box',
        data: {
          url: 'https://www.baidu.com',
          sina: 'sina.cn',
          alt: 'baidu',
          title: ':href百度',
        },
        methods: {},
      })
    </script>
  </body>
</html>
